function formValite(form){
	var isSubmit = true;
	for(var i=0;i<$("#"+form).find("input[validate='true'],select[validate='true']").length;i++){
		var item = $("#"+form).find("input[validate='true'],select[validate='true']")[i];
		 var missingMessage = $(item).attr("missingMessage");
		 var invalidMessage = $(item).attr("invalidMessage");
		 var id = $(item).attr("id");
		 var type = $(item).attr("type");
		 var val = $(item).val();
		 if(!missingMessage)missingMessage = "请输入！";
		 if(!invalidMessage)invalidMessage = "格式不正确！";
		 if($(item).attr("required")=='required'){
			 if(val==""){
				$(item).tips({side:2,msg:missingMessage,bg:'#AE81FF',time:2});
				isSubmit= false;
				continue;
			}
		 }
		 if(type=='number'){
			 if(isNaN(parseFloat(val))){
				 $(item).tips({side:2,msg:invalidMessage,bg:'#AE81FF',time:2});
				isSubmit= false;
				continue;
			 }
			 var digit = $(item).attr("digit");
			 if(null!=digit&&digit!=''){
				 if(digit=="0"){
					 eval("var reg = /^[0-9]*$/;"); 
				 }else{
					 eval("var reg = /^[0-9]*(\.[0-9]{1,"+digit+"})?$/;"); 
				 }
				 if(!reg.test(val)){
					 $(item).tips({side:2,msg:"保留"+digit+"位小数",bg:'#AE81FF',time:2});
					isSubmit= false;
					continue;
				 }
			 }
			 var min = $(item).attr("min");
			 if(null!=min&&min!=''){
				  if(parseFloat(val)<parseFloat(min)){
					 $(item).tips({side:2,msg:"最小值为"+min,bg:'#AE81FF',time:2});
					isSubmit= false;
					continue;
				 }
			 }
			 var max = $(item).attr("max");
			 if(null!=max&&max!=''){
				  if(parseFloat(val)>parseFloat(max)){
					 $(item).tips({side:2,msg:"最大值为"+max,bg:'#AE81FF',time:2});
					isSubmit= false;
					continue;
				 }
			 }
		 }
	}
	return isSubmit;
}